package checkip;

import org.zoolu.sip.message.Message;
import org.zoolu.sip.provider.SipProvider;
import org.zoolu.sip.provider.SipProviderListener;

import it.unipr.ce.dsg.s2p.peer.Peer;
import it.unipr.ce.dsg.s2p.sip.Address;

public class PromisPeer extends Peer implements SipProviderListener{
	
	public PromisPeer(String pathConfig, String key, String peerName,
			int peerPort) {
		super(pathConfig, key, peerName, peerPort);
	}

	@Override
	protected void onDeliveryMsgFailure(String peerMsgSended, Address receiver,
			String contentType) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void onDeliveryMsgSuccess(String peerMsgSended, Address receiver,
			String contentType) {
		// TODO Auto-generated method stub
		
	}
	
	@Override
	public void onReceivedMessage(SipProvider sipPvd, Message sipMsg) {
		// TODO Auto-generated method stub
		super.onReceivedMessage(sipPvd, sipMsg);
		System.out.println("ON RCV MESSAGE - SIP PROVIDER LISTENER");
		System.out.println(sipMsg);
	}

	public void setSbc(String string) {
		// TODO Auto-generated method stub
		
	}

}
